#include "resource.h"
#include "Header.h"
#include "chain.h"
#include "alter.h"

CWinTest3 MainWin;

int WINAPI wWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, PWSTR pCmdLine, int nCmdShow)
{
    MSG Msg = { 0 };
    RECT rc = { 500,200,800,500 };
    HMENU hMenu = LoadMenu(hInstance, MAKEINTRESOURCE(IDR_MENU));

    HWND hWnd = MainWin.Create(nullptr, rc, nullptr, WS_OVERLAPPEDWINDOW, 0, hMenu);
    MainWin.UpdateWindow();
    MainWin.ShowWindow(SW_SHOW);

    while (GetMessage(&Msg, nullptr, 0, 0))
    {
        TranslateMessage(&Msg);
        DispatchMessage(&Msg);
    }

    return 0;
}
